:root,
[data-bs-theme=light] {
  --jg-post-more-bg-rgb: 255, 255, 255;
  --svg-paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0V3z'/%3E%3C/svg%3E");
}

[data-bs-theme=dark] {
  --jg-post-more-bg-rgb: 0, 0, 0;
  --svg-paperclip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 3a2.5 2.5 0 0 1 5 0v9a1.5 1.5 0 0 1-3 0V5a.5.5 0 0 1 1 0v7a.5.5 0 0 0 1 0V3a1.5 1.5 0 1 0-3 0v9a2.5 2.5 0 0 0 5 0V5a.5.5 0 0 1 1 0v7a3.5 3.5 0 1 1-7 0V3z'/%3E%3C/svg%3E");
}

#posts-container .card .card-header.sticky-top {
  z-index: 1018;
}

#tableOfContents-container .dropdown-menu {
  --bs-dropdown-min-width: 16.5rem;
}

#post-title {
}

#post-title-action {
  opacity: 0;
  transition: opacity 1.3s ease;
}

#posts-container:hover #post-title-action,
#post-title:hover #post-title-action {
  display: flex;
  opacity: 1;
}

#post-nav .prev:hover,
#post-nav .next:hover,
#post-nav > div:hover {
  color: var(--border-color);
  border-color: var(--border-color);
}

#post-content {
  position: relative;
  overflow: hidden;
  min-height: 150vh;
  max-height: 2000vh;
}

#post-content.article_shrink {
  max-height: 150vh;
}

#post-content > h1:after,
#post-content > h2:after,
#post-content > h3:after,
#post-content > h4:after,
#post-content > h5:after,
#post-content > h6:after {
  content: var(--svg-paperclip);
  margin-left: .5rem;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
  transition: opacity .2s ease;
}

#post-content > h1:hover:after,
#post-content > h2:hover:after,
#post-content > h3:hover:after,
#post-content > h4:hover:after,
#post-content > h5:hover:after,
#post-content > h6:hover:after {
  opacity: 1;
}

[lang=zh-CN] {
  --content-end-text: "结 束";
}

[lang=en-US] {
  --content-end-text: "THE END";
}

:root {
  --content-end-space: "\00A0\00A0\00A0";
  --content-end-hyphen: "——————";
  --content-end-content: var(--content-end-hyphen) var(--content-end-space) var(--content-end-text) var(--content-end-space) var(--content-end-hyphen);
}

#post-content::after {
  padding: 4rem 0;
  margin: 1rem 0;
  width: 100%;
  content: var(--content-end-content);
  color: var(--bs-secondary-bg);
  display: flex;
  justify-content: center;
  user-select: none;
}

/* 文章篇幅展开 */
#post-content-more {
  z-index: 1017;
}

#post-content-more.shrink-post-content {
  background-image: linear-gradient(180deg, rgba(var(--bs-body-bg-rgb), 0) 10%, rgba(var(--bs-body-bg-rgb), .95) 95%);
  margin-top: -15rem;
  padding-top: 10rem;
  padding-bottom: 5rem;
}

#post-content-more.grow-post-content {
}
